/**************************************************************
 * HTTPPrint.h
 * Provides callback headers and resolution for user's custom
 * HTTP Application.
 * 
 * This file is automatically generated by the MPFS Utility
 * ALL MODIFICATIONS WILL BE OVERWRITTEN BY THE MPFS GENERATOR
 **************************************************************/

#ifndef __HTTPPRINT_H
#define __HTTPPRINT_H

#include "TCPIP Stack/TCPIP.h"

#if defined(STACK_USE_HTTP2_SERVER)

extern HTTP_CONN curHTTP;
extern HTTP_STUB httpStubs[MAX_HTTP_CONNECTIONS];
extern BYTE curHTTPID;

void HTTPPrint(DWORD callbackID);
void HTTPPrint_status_fail(void);
void HTTPPrint_status_ok(void);
void HTTPPrint_tp_srv(void);
void HTTPPrint_tp_zz(void);
void HTTPPrint_tp_sz(void);
void HTTPPrint_host(void);
void HTTPPrint_b_n(WORD);
void HTTPPrint_bg_b(WORD);
void HTTPPrint_b_v(WORD);
void HTTPPrint_t4(WORD);
void HTTPPrint_stat(WORD);
void HTTPPrint_e_n1(WORD);
void HTTPPrint_eg_b1(WORD);
void HTTPPrint_e_v1(WORD);
void HTTPPrint_tem(void);
void HTTPPrint_builddate(void);
void HTTPPrint_ajax_l(void);
void HTTPPrint_ajax(void);
void HTTPPrint_Tn(void);
void HTTPPrint_TN(void);
void HTTPPrint_T0(WORD);
void HTTPPrint_T1(WORD);
void HTTPPrint_T2(WORD);
void HTTPPrint_T3(WORD);
void HTTPPrint_T4(void);
void HTTPPrint_n_iv(void);
void HTTPPrint_K0(void);
void HTTPPrint_K1(void);
void HTTPPrint_K2(void);
void HTTPPrint_K3(void);
void HTTPPrint_K4(void);
void HTTPPrint_K5(void);
void HTTPPrint_K6(void);
void HTTPPrint_K7(void);
void HTTPPrint_bt(void);
void HTTPPrint_ont(WORD);
void HTTPPrint_offt(WORD);
void HTTPPrint_Ss(void);
void HTTPPrint_Sl(void);
void HTTPPrint_Si(void);
void HTTPPrint_Sc(void);
void HTTPPrint_Su(void);
void HTTPPrint_Es(void);
void HTTPPrint_Eo(void);
void HTTPPrint_Et(void);
void HTTPPrint_Ec(void);
void HTTPPrint_Ef(void);
void HTTPPrint_Eb(void);
void HTTPPrint_Em(void);
void HTTPPrint_Eu(void);
void HTTPPrint_Ep(void);
void HTTPPrint_e_no(void);
void HTTPPrint_log(void);
void HTTPPrint_login(void);
void HTTPPrint_io(void);
void HTTPPrint_ver(void);
void HTTPPrint_config(void);
void HTTPPrint_sn(void);
void HTTPPrint_dhcp(void);
void HTTPPrint_zc(void);
void HTTPPrint_cip(void);
void HTTPPrint_port(void);
void HTTPPrint_csn(void);
void HTTPPrint_cgw(void);
void HTTPPrint_cdns1(void);
void HTTPPrint_cdns2(void);
void HTTPPrint_cmac(void);
void HTTPPrint_udp(void);
void HTTPPrint_uds(void);
void HTTPPrint_ude(void);
void HTTPPrint_reboot(void);
void HTTPPrint_TA(WORD);
void HTTPPrint_TG(WORD);
void HTTPPrint_TF(WORD);
void HTTPPrint_bs(WORD);
void HTTPPrint_ssek(WORD);
void HTTPPrint_ed(WORD);
void HTTPPrint_user(void);
void HTTPPrint_bu(void);
void HTTPPrint_DI(WORD);
void HTTPPrint_di(WORD);
void HTTPPrint_IO_en(void);
void HTTPPrint_IO_show(void);

void HTTPPrint(DWORD callbackID)
{
	switch(callbackID)
	{
        case 0x00000000:
			HTTPPrint_status_fail();
			break;
        case 0x00000001:
			HTTPPrint_status_ok();
			break;
        case 0x00000002:
			HTTPPrint_tp_srv();
			break;
        case 0x00000003:
			HTTPPrint_tp_zz();
			break;
        case 0x00000004:
			HTTPPrint_tp_sz();
			break;
        case 0x00000005:
			HTTPPrint_host();
			break;
        case 0x00000006:
			HTTPPrint_b_n(0);
			break;
        case 0x00000007:
			HTTPPrint_b_n(1);
			break;
        case 0x00000008:
			HTTPPrint_b_n(2);
			break;
        case 0x00000009:
			HTTPPrint_b_n(3);
			break;
        case 0x0000000a:
			HTTPPrint_bg_b(0);
			break;
        case 0x0000000b:
			HTTPPrint_b_v(0);
			break;
        case 0x0000000c:
			HTTPPrint_t4(0);
			break;
        case 0x0000000d:
			HTTPPrint_bg_b(1);
			break;
        case 0x0000000e:
			HTTPPrint_b_v(1);
			break;
        case 0x0000000f:
			HTTPPrint_t4(1);
			break;
        case 0x00000010:
			HTTPPrint_bg_b(2);
			break;
        case 0x00000011:
			HTTPPrint_b_v(2);
			break;
        case 0x00000012:
			HTTPPrint_t4(2);
			break;
        case 0x00000013:
			HTTPPrint_bg_b(3);
			break;
        case 0x00000014:
			HTTPPrint_b_v(3);
			break;
        case 0x00000015:
			HTTPPrint_t4(3);
			break;
        case 0x00000016:
			HTTPPrint_stat(0);
			break;
        case 0x00000017:
			HTTPPrint_stat(1);
			break;
        case 0x00000018:
			HTTPPrint_stat(2);
			break;
        case 0x00000019:
			HTTPPrint_stat(3);
			break;
        case 0x0000001a:
			HTTPPrint_b_n(4);
			break;
        case 0x0000001b:
			HTTPPrint_b_n(5);
			break;
        case 0x0000001c:
			HTTPPrint_b_n(6);
			break;
        case 0x0000001d:
			HTTPPrint_b_n(7);
			break;
        case 0x0000001e:
			HTTPPrint_bg_b(4);
			break;
        case 0x0000001f:
			HTTPPrint_b_v(4);
			break;
        case 0x00000020:
			HTTPPrint_t4(4);
			break;
        case 0x00000021:
			HTTPPrint_bg_b(5);
			break;
        case 0x00000022:
			HTTPPrint_b_v(5);
			break;
        case 0x00000023:
			HTTPPrint_t4(5);
			break;
        case 0x00000024:
			HTTPPrint_bg_b(6);
			break;
        case 0x00000025:
			HTTPPrint_b_v(6);
			break;
        case 0x00000026:
			HTTPPrint_t4(6);
			break;
        case 0x00000027:
			HTTPPrint_bg_b(7);
			break;
        case 0x00000028:
			HTTPPrint_b_v(7);
			break;
        case 0x00000029:
			HTTPPrint_t4(7);
			break;
        case 0x0000002a:
			HTTPPrint_stat(4);
			break;
        case 0x0000002b:
			HTTPPrint_stat(5);
			break;
        case 0x0000002c:
			HTTPPrint_stat(6);
			break;
        case 0x0000002d:
			HTTPPrint_stat(7);
			break;
        case 0x0000002e:
			HTTPPrint_e_n1(0);
			break;
        case 0x0000002f:
			HTTPPrint_e_n1(1);
			break;
        case 0x00000030:
			HTTPPrint_e_n1(2);
			break;
        case 0x00000031:
			HTTPPrint_e_n1(3);
			break;
        case 0x00000032:
			HTTPPrint_eg_b1(0);
			break;
        case 0x00000033:
			HTTPPrint_e_v1(0);
			break;
        case 0x00000034:
			HTTPPrint_eg_b1(1);
			break;
        case 0x00000035:
			HTTPPrint_e_v1(1);
			break;
        case 0x00000036:
			HTTPPrint_eg_b1(2);
			break;
        case 0x00000037:
			HTTPPrint_e_v1(2);
			break;
        case 0x00000038:
			HTTPPrint_eg_b1(3);
			break;
        case 0x00000039:
			HTTPPrint_e_v1(3);
			break;
        case 0x0000003a:
			HTTPPrint_e_n1(4);
			break;
        case 0x0000003b:
			HTTPPrint_e_n1(5);
			break;
        case 0x0000003c:
			HTTPPrint_e_n1(6);
			break;
        case 0x0000003d:
			HTTPPrint_e_n1(7);
			break;
        case 0x0000003e:
			HTTPPrint_eg_b1(4);
			break;
        case 0x0000003f:
			HTTPPrint_e_v1(4);
			break;
        case 0x00000040:
			HTTPPrint_eg_b1(5);
			break;
        case 0x00000041:
			HTTPPrint_e_v1(5);
			break;
        case 0x00000042:
			HTTPPrint_eg_b1(6);
			break;
        case 0x00000043:
			HTTPPrint_e_v1(6);
			break;
        case 0x00000044:
			HTTPPrint_eg_b1(7);
			break;
        case 0x00000045:
			HTTPPrint_e_v1(7);
			break;
        case 0x00000046:
			HTTPPrint_tem();
			break;
        case 0x00000047:
			HTTPPrint_builddate();
			break;
        case 0x00000048:
			HTTPPrint_ajax_l();
			break;
        case 0x00000049:
			HTTPPrint_ajax();
			break;
        case 0x0000004a:
			HTTPPrint_Tn();
			break;
        case 0x0000004b:
			HTTPPrint_TN();
			break;
        case 0x0000004c:
			HTTPPrint_T0(0);
			break;
        case 0x0000004d:
			HTTPPrint_T1(0);
			break;
        case 0x0000004e:
			HTTPPrint_T2(0);
			break;
        case 0x0000004f:
			HTTPPrint_T3(0);
			break;
        case 0x00000050:
			HTTPPrint_T0(1);
			break;
        case 0x00000051:
			HTTPPrint_T1(1);
			break;
        case 0x00000052:
			HTTPPrint_T2(1);
			break;
        case 0x00000053:
			HTTPPrint_T3(1);
			break;
        case 0x00000054:
			HTTPPrint_T0(2);
			break;
        case 0x00000055:
			HTTPPrint_T1(2);
			break;
        case 0x00000056:
			HTTPPrint_T2(2);
			break;
        case 0x00000057:
			HTTPPrint_T3(2);
			break;
        case 0x00000058:
			HTTPPrint_T0(3);
			break;
        case 0x00000059:
			HTTPPrint_T1(3);
			break;
        case 0x0000005a:
			HTTPPrint_T2(3);
			break;
        case 0x0000005b:
			HTTPPrint_T3(3);
			break;
        case 0x0000005c:
			HTTPPrint_T0(4);
			break;
        case 0x0000005d:
			HTTPPrint_T1(4);
			break;
        case 0x0000005e:
			HTTPPrint_T2(4);
			break;
        case 0x0000005f:
			HTTPPrint_T3(4);
			break;
        case 0x00000060:
			HTTPPrint_T4();
			break;
        case 0x00000061:
			HTTPPrint_n_iv();
			break;
        case 0x00000062:
			HTTPPrint_K0();
			break;
        case 0x00000063:
			HTTPPrint_K1();
			break;
        case 0x00000064:
			HTTPPrint_K2();
			break;
        case 0x00000065:
			HTTPPrint_K3();
			break;
        case 0x00000066:
			HTTPPrint_K4();
			break;
        case 0x00000067:
			HTTPPrint_K5();
			break;
        case 0x00000068:
			HTTPPrint_K6();
			break;
        case 0x00000069:
			HTTPPrint_K7();
			break;
        case 0x0000006a:
			HTTPPrint_bt();
			break;
        case 0x0000006b:
			HTTPPrint_ont(0);
			break;
        case 0x0000006c:
			HTTPPrint_offt(0);
			break;
        case 0x0000006d:
			HTTPPrint_ont(1);
			break;
        case 0x0000006e:
			HTTPPrint_offt(1);
			break;
        case 0x0000006f:
			HTTPPrint_ont(2);
			break;
        case 0x00000070:
			HTTPPrint_offt(2);
			break;
        case 0x00000071:
			HTTPPrint_ont(3);
			break;
        case 0x00000072:
			HTTPPrint_offt(3);
			break;
        case 0x00000073:
			HTTPPrint_ont(4);
			break;
        case 0x00000074:
			HTTPPrint_offt(4);
			break;
        case 0x00000075:
			HTTPPrint_ont(5);
			break;
        case 0x00000076:
			HTTPPrint_offt(5);
			break;
        case 0x00000077:
			HTTPPrint_ont(6);
			break;
        case 0x00000078:
			HTTPPrint_offt(6);
			break;
        case 0x00000079:
			HTTPPrint_ont(7);
			break;
        case 0x0000007a:
			HTTPPrint_offt(7);
			break;
        case 0x0000007b:
			HTTPPrint_Ss();
			break;
        case 0x0000007c:
			HTTPPrint_Sl();
			break;
        case 0x0000007d:
			HTTPPrint_Si();
			break;
        case 0x0000007e:
			HTTPPrint_Sc();
			break;
        case 0x0000007f:
			HTTPPrint_Su();
			break;
        case 0x00000080:
			HTTPPrint_Es();
			break;
        case 0x00000081:
			HTTPPrint_Eo();
			break;
        case 0x00000082:
			HTTPPrint_Et();
			break;
        case 0x00000083:
			HTTPPrint_Ec();
			break;
        case 0x00000084:
			HTTPPrint_Ef();
			break;
        case 0x00000085:
			HTTPPrint_Eb();
			break;
        case 0x00000086:
			HTTPPrint_Em();
			break;
        case 0x00000087:
			HTTPPrint_Eu();
			break;
        case 0x00000088:
			HTTPPrint_Ep();
			break;
        case 0x00000089:
			HTTPPrint_e_no();
			break;
        case 0x0000008a:
			HTTPPrint_log();
			break;
        case 0x0000008b:
			HTTPPrint_login();
			break;
        case 0x0000008c:
			HTTPPrint_io();
			break;
        case 0x0000008d:
			HTTPPrint_ver();
			break;
        case 0x0000008e:
			HTTPPrint_config();
			break;
        case 0x0000008f:
			HTTPPrint_sn();
			break;
        case 0x00000090:
			HTTPPrint_dhcp();
			break;
        case 0x00000091:
			HTTPPrint_zc();
			break;
        case 0x00000092:
			HTTPPrint_cip();
			break;
        case 0x00000093:
			HTTPPrint_port();
			break;
        case 0x00000094:
			HTTPPrint_csn();
			break;
        case 0x00000095:
			HTTPPrint_cgw();
			break;
        case 0x00000096:
			HTTPPrint_cdns1();
			break;
        case 0x00000097:
			HTTPPrint_cdns2();
			break;
        case 0x00000098:
			HTTPPrint_cmac();
			break;
        case 0x00000099:
			HTTPPrint_udp();
			break;
        case 0x0000009a:
			HTTPPrint_uds();
			break;
        case 0x0000009b:
			HTTPPrint_ude();
			break;
        case 0x0000009c:
			HTTPPrint_reboot();
			break;
        case 0x0000009d:
			HTTPPrint_TA(0);
			break;
        case 0x0000009e:
			HTTPPrint_TG(0);
			break;
        case 0x0000009f:
			HTTPPrint_TF(0);
			break;
        case 0x000000a0:
			HTTPPrint_bs(0);
			break;
        case 0x000000a1:
			HTTPPrint_ssek(0);
			break;
        case 0x000000a2:
			HTTPPrint_ed(0);
			break;
        case 0x000000a3:
			HTTPPrint_TA(1);
			break;
        case 0x000000a4:
			HTTPPrint_TG(1);
			break;
        case 0x000000a5:
			HTTPPrint_TF(1);
			break;
        case 0x000000a6:
			HTTPPrint_bs(1);
			break;
        case 0x000000a7:
			HTTPPrint_ssek(1);
			break;
        case 0x000000a8:
			HTTPPrint_ed(1);
			break;
        case 0x000000a9:
			HTTPPrint_TA(2);
			break;
        case 0x000000aa:
			HTTPPrint_TG(2);
			break;
        case 0x000000ab:
			HTTPPrint_TF(2);
			break;
        case 0x000000ac:
			HTTPPrint_bs(2);
			break;
        case 0x000000ad:
			HTTPPrint_ssek(2);
			break;
        case 0x000000ae:
			HTTPPrint_ed(2);
			break;
        case 0x000000af:
			HTTPPrint_TA(3);
			break;
        case 0x000000b0:
			HTTPPrint_TG(3);
			break;
        case 0x000000b1:
			HTTPPrint_TF(3);
			break;
        case 0x000000b2:
			HTTPPrint_bs(3);
			break;
        case 0x000000b3:
			HTTPPrint_ssek(3);
			break;
        case 0x000000b4:
			HTTPPrint_ed(3);
			break;
        case 0x000000b5:
			HTTPPrint_TA(4);
			break;
        case 0x000000b6:
			HTTPPrint_TG(4);
			break;
        case 0x000000b7:
			HTTPPrint_TF(4);
			break;
        case 0x000000b8:
			HTTPPrint_bs(4);
			break;
        case 0x000000b9:
			HTTPPrint_ssek(4);
			break;
        case 0x000000ba:
			HTTPPrint_ed(4);
			break;
        case 0x000000bb:
			HTTPPrint_TA(5);
			break;
        case 0x000000bc:
			HTTPPrint_TG(5);
			break;
        case 0x000000bd:
			HTTPPrint_TF(5);
			break;
        case 0x000000be:
			HTTPPrint_bs(5);
			break;
        case 0x000000bf:
			HTTPPrint_ssek(5);
			break;
        case 0x000000c0:
			HTTPPrint_ed(5);
			break;
        case 0x000000c1:
			HTTPPrint_TA(6);
			break;
        case 0x000000c2:
			HTTPPrint_TG(6);
			break;
        case 0x000000c3:
			HTTPPrint_TF(6);
			break;
        case 0x000000c4:
			HTTPPrint_bs(6);
			break;
        case 0x000000c5:
			HTTPPrint_ssek(6);
			break;
        case 0x000000c6:
			HTTPPrint_ed(6);
			break;
        case 0x000000c7:
			HTTPPrint_TA(7);
			break;
        case 0x000000c8:
			HTTPPrint_TG(7);
			break;
        case 0x000000c9:
			HTTPPrint_TF(7);
			break;
        case 0x000000ca:
			HTTPPrint_bs(7);
			break;
        case 0x000000cb:
			HTTPPrint_ssek(7);
			break;
        case 0x000000cc:
			HTTPPrint_ed(7);
			break;
        case 0x000000cd:
			HTTPPrint_user();
			break;
        case 0x000000ce:
			HTTPPrint_bu();
			break;
        case 0x000000d3:
			HTTPPrint_DI(0);
			break;
        case 0x000000d4:
			HTTPPrint_DI(1);
			break;
        case 0x000000d5:
			HTTPPrint_DI(2);
			break;
        case 0x000000d6:
			HTTPPrint_DI(3);
			break;
        case 0x000000d7:
			HTTPPrint_DI(4);
			break;
        case 0x000000d8:
			HTTPPrint_DI(5);
			break;
        case 0x000000d9:
			HTTPPrint_DI(6);
			break;
        case 0x000000da:
			HTTPPrint_DI(7);
			break;
        case 0x000000db:
			HTTPPrint_di(0);
			break;
        case 0x000000dc:
			HTTPPrint_di(1);
			break;
        case 0x000000dd:
			HTTPPrint_di(2);
			break;
        case 0x000000de:
			HTTPPrint_di(3);
			break;
        case 0x000000df:
			HTTPPrint_di(4);
			break;
        case 0x000000e0:
			HTTPPrint_di(5);
			break;
        case 0x000000e1:
			HTTPPrint_di(6);
			break;
        case 0x000000e2:
			HTTPPrint_di(7);
			break;
        case 0x000000e7:
			HTTPPrint_IO_en();
			break;
        case 0x000000e9:
			HTTPPrint_IO_show();
			break;
		default:
			// Output notification for undefined values
			TCPPutROMArray(sktHTTP, (ROM BYTE*)"!DEF", 4);
	}

	return;
}

void HTTPPrint_(void)
{
	TCPPut(sktHTTP, '~');
	return;
}

#endif

#endif
